<?php

class Replacer  {
	
	const PLACEHOLDER_MAIN_MENU = '/###MAIN_MENU###/';
	const PLACEHOLDER_MAIN_MENU_CONTROL = '/###MAIN_MENU_CONTROL###/';
	const PLACEHOLDER_SUB_MENU = '/###SUB_MENU###/';
	const PLACEHOLDER_CONTENT = '/###TEXTCONTENT###/';
	const PLACEHOLDER_ERROR = '/###ERROR_MSG###/';
	
	public static function replacePlaceholder ($frameContent, $content, $placeholder)  {
		return preg_replace($placeholder, $content, $frameContent);
	}
	
	
}